package cn.zj.admin.modules.oa.repository;

import cn.zj.admin.modules.oa.domain.SignRecord;
import cn.zj.admin.modules.oa.domain.Staff;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

/**
 * @author xi.yang
 */
public interface SignRecordRepository extends MongoRepository<SignRecord, String> {
    List<SignRecord> findByStaffAndDateStrBetween(Staff staff, Date start, Date end);

    List<SignRecord> findByDateStrBetween(Date start, Date end);

    SignRecord getByStaffAndDateStr(Staff staff, Date dateStr);
}
